﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucProduct.ascx.cs" Inherits="QuocTeViet.AdminCP.PageUC.ucProduct" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dxpc" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<style type="text/css">
    td.tdTitle
    {
        height: 20px;
        margin-left: 2px;
        width: 150px;
        font-family: Times New Roman, Arial, Tahoma;
        font-size: 15px;
        color: #000;
    }
    td.tdTitle p
    {
        height: 20px;
        margin: 0px;
        padding: 0px;
        color: #000;
        width: 109px;
    }
    td.tdContent
    {
    }
    .style1
    {
        width: 339px;
    }
</style>
<h2>
    Sản phẩm</h2>
<table width="100%" border="1">
    <tr>
        <td class="tdTitle">
            <p>
                Tên sản phẩm:</p>
        </td>
        <td class="style1" colspan="3">
            <asp:TextBox ID="txtTenSanPham" runat="server" Width="235px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvTitle" runat="server" ErrorMessage="***Bạn chưa nhập tên sản phẩm"
                ControlToValidate="txtTenSanPham"></asp:RequiredFieldValidator>
            <asp:TextBox ID="txtMaSanPham" Visible="false" runat="server" Width="235px"></asp:TextBox>
            <asp:TextBox ID="txteTenSanPham" Visible="false" runat="server" Width="235px"></asp:TextBox>
            <asp:TextBox ID="txtGiamGia" Visible="false" runat="server" Width="235px"></asp:TextBox>
            <asp:TextBox ID="txtGia" Visible="false" runat="server" Width="235px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="tdTitle">
            <p>
                Hãng xe:</p>
        </td>
        <td class="style1">
            <asp:DropDownList ID="drpNhanHieu" runat="server" Width="135px" AppendDataBoundItems="true">
                <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
            </asp:DropDownList>
            Xuất xứ
            <asp:DropDownList ID="ddlXuatXu" runat="server" Width="135px" AppendDataBoundItems="true">
                <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
            </asp:DropDownList>
        </td>
        <td class="tdTitle" colspan="2">
            <asp:CheckBox ID="cbSanPhamMoi" Text="Sản phẩm nổi bật" runat="server" />
        </td>
    </tr>
    <tr>
        <td class="tdTitle">
            <p>
                Loại xe:</p>
        </td>
        <td class="style1">
            <asp:DropDownList ID="drpLoaiSanPham" runat="server" Width="135px" AppendDataBoundItems="true">
                <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
            </asp:DropDownList>
            <%--Đơn vị:--%>
            <asp:DropDownList ID="drpDonViTinh" runat="server" Width="116px" Visible="false"
                AppendDataBoundItems="true">
                <asp:ListItem Text=".: Không chọn :." Value="0"></asp:ListItem>
            </asp:DropDownList>
        </td>
        <td class="tdTitle" colspan="2">
            <asp:CheckBox ID="cbSanPhamBanChay" runat="server" />
            Sản phẩm bán chạy
        </td>
    </tr>
    <tr>
        <td class="tdTitle">
            Ảnh đại diện:
        </td>
        <td colspan="3">
            <asp:FileUpload ID="fulImage" runat="server" />
            <asp:HyperLink runat="server" Target="_blank" ID="hplImage" Text="[Xem ảnh]" Visible="false"></asp:HyperLink>
        </td>
    </tr>
    <tr>
        <td class="tdTitle">
            Thông tin khác:
        </td>
        <td colspan="3">
            <asp:TabContainer ID="tcDetail" runat="server" ActiveTabIndex="0" Width="100%">
                <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Mô tả">
                    <ContentTemplate>
                        <asp:TextBox ID="txtxMota" runat="server" TextMode="MultiLine" Rows="20" Columns="20" Width="100%" Height="200px"></asp:TextBox>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanel3" runat="server" HeaderText="Mô tả chi tiết">
                    <ContentTemplate>
                        <CKEditor:CKEditorControl ID="txtMoTaChiTiet" runat="server"></CKEditor:CKEditorControl>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanel6" runat="server" HeaderText="Khác">
                    <ContentTemplate>
                        <CKEditor:CKEditorControl ID="txtBaoHanh" runat="server"></CKEditor:CKEditorControl>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanel4" Visible="true" runat="server" HeaderText="Từ khóa">
                    <ContentTemplate>
                        Tags:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
                        <asp:TextBox ID="txtTuKhoa" TextMode="MultiLine" runat="server" Width="50%"></asp:TextBox>
                    </ContentTemplate>
                </asp:TabPanel>
            </asp:TabContainer>
            <asp:TabContainer Visible="false" ID="TabContainer1" runat="server" ActiveTabIndex="0"
                Width="100%">
                <asp:TabPanel ID="TabPanel10" runat="server" HeaderText="Mô tả TA">
                    <ContentTemplate>
                        <asp:TextBox ID="txteMota" Width="100%" Height="200px" runat="server" TextMode="MultiLine"></asp:TextBox>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanel12" runat="server" HeaderText="Mô tả chi tiết TA">
                    <ContentTemplate>
                        <CKEditor:CKEditorControl ID="txteMoTaChiTiet" runat="server"></CKEditor:CKEditorControl>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanel14" runat="server" HeaderText="Khác">
                    <ContentTemplate>
                        <CKEditor:CKEditorControl ID="txetBaoHanh" runat="server"></CKEditor:CKEditorControl>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanel16" Visible="true" runat="server" HeaderText="Từ khóa TA">
                    <ContentTemplate>
                        Tags:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;
                        <asp:TextBox ID="txteTuKhoa" TextMode="MultiLine" runat="server" Width="50%"></asp:TextBox>
                    </ContentTemplate>
                </asp:TabPanel>
            </asp:TabContainer>
        </td>
    </tr>
    <tr>
        <td class="tdTitle">
        </td>
        <td colspan="3">
            <div style="float: left; margin-right: 10px; margin-top: 10px;">
                <asp:Button runat="server" ID="btnLuu" Text="Lưu" OnClick="btSave_Click" />
            </div>
            <div style="margin-top: 10px;">
                <asp:Button runat="server" ID="btnHuy" Text="Hủy" />
            </div>
        </td>
    </tr>
</table>
